package com.zzl.bonds.ticket.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.zzl.apidoc.annotation.ApidocModel;
import com.zzl.apidoc.annotation.ApidocModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * 核心企业授信资料表
 *
 * @author gull
 * @date 2022-07-06 13:43:52
 */
@Data
@TableName("t_enterprise_credit_data")
@ApidocModel
@SuppressWarnings("javadoc")
public class EnterpriseCreditDataEntity implements Serializable {
    private static final long serialVersionUID = 1L;

    @TableId(type = IdType.UUID)
    @ApidocModelProperty(description = "主键")
    private String id;
    @ApidocModelProperty(description = "授信id，核心企业授信或供应商授信")
    private String creditId;
    @ApidocModelProperty(description = "授信类型，1：核心企业授信  2：供应商")
    private Integer creditType;
    @ApidocModelProperty(description = "资料类型 1、凭证 2、发票")
    private Integer dataType;
    @ApidocModelProperty(description = "资料描述")
    private String dataDescribe;
    @ApidocModelProperty(description = "文件名称")
    private String fileName;
    @ApidocModelProperty(description = "融资授信id")
    private String supplierCreditId;
    @ApidocModelProperty(description = "资料文件地址")
    private String dataAddress;
    @ApidocModelProperty(description = "企业id,权限使用")
    private String enterpriseId;
    @ApidocModelProperty(description = "部门id")
    private Integer orgId;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApidocModelProperty(description = "创建时间", validate = "yyyy-MM-dd HH:mm:ss")
    @TableField(fill = FieldFill.INSERT)
    private Date createTime;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApidocModelProperty(description = "修改时间", validate = "yyyy-MM-dd HH:mm:ss")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;
    @ApidocModelProperty(description = "创建人")
    private Integer creatorId;
    @ApidocModelProperty(description = "修改人")
    private Integer updaterId;
    @ApidocModelProperty(description = "备注")
    private String remark;

}
